/**
 * @author of2470
 *@date 2017/4/1
 *@description
 */

import React,{Component} from 'react';
import LoadResourceUtil from '../load-js-util';

class LandingPage extends Component{
    componentDidMount(){
        let domain = $CONST_RIGHT.domain;
        let env = '';
        if (domain.indexOf('qianmi.com') >= 0) {
            env = 'prod';
        } else {
            env = 'test';
        }

        /*
         * 业务线不需要开发建站的落地页，只需渲染个div
         * 加载建站落地页的js 和 css
         */
        let js = '//qianmi-web.oss-cn-hangzhou.aliyuncs.com/x-site/' + env + '/public/landing-page.js';
        let css = '//qianmi-web.oss-cn-hangzhou.aliyuncs.com/x-site/' + env + '/public/landing-page.css';
        LoadResourceUtil.loadJS(js);
        LoadResourceUtil.loadCSS(css);

    }
    render(){
        return(
            <div id="xsite-landing-page" style={{marginTop: '50px'}}>
            </div>
        )
    }
}

export default LandingPage